﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CloudDcPc.Entity
{
    public class Gz
    {
        public override string ToString()
        {
            return sign_name;
        }


        public string ApproverNameAndNum
        {
            get { 
                User user = App.UserBean.GetUserByField("user_num", Approver);
                return user.Uname+"("+user.User_num+")"; }
            set { Approver = value.Split(new char[] { '(', ')' })[1]; }
        }

        public string ApproverName
        {
            get { return App.UserBean.GetUserByField("user_num", Approver).Uname; }
            set{}
        }

        private int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        private string sign_name;

        public string Sign_name
        {
            get { return sign_name; }
            set { sign_name = value; }
        }
        private string phone;

        public string Phone
        {
            get { return phone; }
            set { phone = value; }
        }
        private string department;

        public string Department
        {
            get { return department; }
            set { department = value; }
        }
        private string doer;

        public string Doer
        {
            get { return doer; }
            set { doer = value; }
        }
        private string approver;

        public string Approver
        {
            get { return approver; }
            set { approver = value; }
        }

    }
}
